begintownscript;

variables;
 short choice;
 body;
 
beginstate INIT_STATE;
 break;
 beginstate START_STATE;
 break;
 beginstate EXIT_STATE;
 break;
 
beginstate 10;
 if (get_flag(5,20) == 0){ message_dialog("Here is the portal that brought you here. It is much better to use a portal than to go through the Sirithic Jungle.","The room is quite bland, though.");
 set_flag(5,20,1);
 } break;
 
beginstate 11;
 reset_dialog();
 add_dialog_str(0,"Here is a portal. Would you like to leave this scenario?",0);
 
add_dialog_choice(0,"No.");
 
add_dialog_choice(1,"Leave scenario.");
 if (run_dialog(1) == 2){ end_scenario(2);
 } else
 block_entry(1);
 break;
 